import {customeStruct} from '../utils';
const itf = customeStruct.interface;
export const InitData = itf({
    payload: itf({
        isDealerUser: 'boolean',
        brands: [itf({
            id: 'string',
            name: 'string'
        })],
    })
});
export const List = itf({
    payload: itf({
        content: [itf(Object.assign({
            id: 'string',
            code: 'string',
            dealerCode: 'string',
            dealerName: 'string',
            status: 'number',
            totalFee: 'number? | null',
            createTime: 'datetime? | null',
            rowVersion: 'string',
        }))],
        totalElements: 'number',
    })
});
export const Detail = itf({
    payload: itf(Object.assign({
        id: 'string',
        code: 'string',
        dealerCode: 'string',
        dealerName: 'string',
        totalFee: 'number? | null',
        createTime: 'datetime? | null',
        rowVersion: 'string',
        branchCode: 'string? | null',
        branchName: 'string? | null',
        creatorName: 'string? | null',
        modifierName: 'string? | null',
        modifyTime: 'datetime? | null',
        invoiceConfirmTime: 'datetime? | null',
        payTime: 'datetime? | null',
        abandonTime: 'datetime? | null',
        details: [
            itf({
                id: 'string',
                reportCode: 'string? | null',
                claimCode: 'string? | null',
                claimType: 'number? | null',
                currency: 'number? | null',
                partId: 'string? | null',
                partCode: 'string? | null',
                partName: 'string? | null',
                packingListCode: 'string? | null',
                partSaleOrderCode: 'string? | null',
                cacuQuantity: 'number? | null',
                price: 'number? | null',
                mgmtFee: 'number? | null',
                cacuFee: 'number? | null',
                claimReason: 'number? | null',
            })
        ],
    }))
});
export const PartClaimReportList = itf({
    payload: itf({
        content: [
            itf({
                id: 'string',
                code: 'string',
            })
        ]
    })
});
